package com.briup.demo.extend;

import com.briup.demo.Category;

import java.util.List;

public class CategoryExtend extends Category {
    //一级分类中包含的二级分类
    public List<Category> categories;

    @Override
    public  String toString() {
        return "CategoryExtend{"+
                "id="+super.getId()+
                "name="+super.getName()+
                "description="+super.getDescription()+
                "parent_id="+super.getParentId()+
                "categories="+categories+
                "}";
    }
}
